import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/give_controller.dart';

class GiveView extends GetView<GiveController> {
  const GiveView({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('GiveView'),
        centerTitle: true,
      ),
      body: Center(
          child: Column(
        children: [
          const Text(
            'UserView is working',
            style: TextStyle(fontSize: 20),
          ),
          /**
          const SizedBox(height: 40),
          ElevatedButton(
              onPressed: () {
                //返回到上一级页面
                // Navigator.of(context).pop();
                Get.toNamed("/localization");
              },
              child: const Text("国际化测试")),
          const SizedBox(height: 40),
          ElevatedButton(
              onPressed: () {
                //返回到上一级页面
                // Navigator.of(context).pop();
                Get.toNamed("/socket");
              },
              child: const Text("Socket测试")),
          const SizedBox(height: 40),
          ElevatedButton(
              onPressed: () {
                //返回到上一级页面
                // Navigator.of(context).pop();
                Get.toNamed("/biometrics");
              },
              child: const Text("生物识别测试")),
          const SizedBox(height: 40),
          ElevatedButton(
              onPressed: () {
                Get.toNamed("/futuredemo");
              },
              child: const Text("Future Demo")),
          const SizedBox(height: 40),
          ElevatedButton(
              onPressed: () {
                Get.toNamed("/datetime");
              },
              child: const Text("日期 时间")),
          const SizedBox(height: 40),
           */
          ElevatedButton(
              onPressed: () {
                Get.toNamed("/diodemo");
              },
              child: const Text("Dio Demo"))
        ],
      )),
    );
  }
}
